import api from '@/utils/http.js'

export const userLogin = async (data) => {
    return await api.post('/login', data)
}

export const userRegister = async (data) => {
    return await api.post('/insertUser', data)
}

export const userSelectPage = async () => {
    return await api.get('/selectUser/page', {params: {page: 1, size: 10000}})
}

export const userUpdateOne = async (data) => {
    return await api.put('/updateUser', data)
}
